package com.stonedt.spider.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author: 康涵博
 * @ClassName: Xml
 * @Time: 2024/5/2 22:02
 * @Description:
 */
@Data
@Getter
@Setter
public class XmlVo {

    private String xml = "<mxGraphModel>\n" +
            "  <root>\n" +
            "    <mxCell id=\"0\">\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;spiderName&quot;:&quot;未定义名称&quot;,&quot;submit-strategy&quot;:&quot;random&quot;,&quot;threadCount&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"1\" parent=\"0\"/>\n" +
            "    <mxCell id=\"2\" value=\"开始\" style=\"start\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"70\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;shape&quot;:&quot;start&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"3\" value=\"列表html\" style=\"request\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"290\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;列表html&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;sleep&quot;:&quot;100&quot;,&quot;timeout&quot;:&quot;30000&quot;,&quot;response-charset&quot;:&quot;&quot;,&quot;retryCount&quot;:&quot;&quot;,&quot;retryInterval&quot;:&quot;&quot;,&quot;body-type&quot;:&quot;raw&quot;,&quot;body-content-type&quot;:&quot;application/json&quot;,&quot;loopCount&quot;:&quot;&quot;,&quot;url&quot;:&quot;http://118.184.157.251:35256/pw/spider/getHtml&quot;,&quot;proxy&quot;:&quot;&quot;,&quot;request-body&quot;:&quot;{\\&quot;webUrl\\&quot;:\\&quot;${weburl}\\&quot;}&quot;,&quot;follow-redirect&quot;:&quot;1&quot;,&quot;tls-validate&quot;:&quot;0&quot;,&quot;cookie-auto-set&quot;:&quot;1&quot;,&quot;repeat-enable&quot;:&quot;0&quot;,&quot;shape&quot;:&quot;request&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"5\" value=\"列表变量\" style=\"variable\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"420\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;列表变量&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;ziloopVariableName&quot;:&quot;&quot;,&quot;variable-name&quot;:[&quot;listjson&quot;,&quot;listdata&quot;,&quot;listhtml&quot;,&quot;listurl&quot;],&quot;variable-description&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;ziloopCount&quot;:&quot;&quot;,&quot;variable-value&quot;:[&quot;${resp.json}&quot;,&quot;${listjson.data}&quot;,&quot;${GZIPUtils.uncompress(listdata)}&quot;,&quot;${ listhtml.selectors(&#39;${listurl}$&#39;).attrs(\\&quot;href\\&quot;)}&quot;],&quot;shape&quot;:&quot;variable&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"6\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"3\" target=\"5\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"7\" value=\"循环\" style=\"loop\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"570\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;循环&quot;,&quot;loopItem&quot;:&quot;&quot;,&quot;loopVariableName&quot;:&quot;i&quot;,&quot;loopCount&quot;:&quot;${listurl.size()}&quot;,&quot;loopStart&quot;:&quot;0&quot;,&quot;loopEnd&quot;:&quot;-1&quot;,&quot;awaitSleep&quot;:&quot;0&quot;,&quot;shape&quot;:&quot;loop&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"8\" value=\"\" style=\"strokeWidth=2;strokeColor=#00ff00;sharp=1;\" parent=\"1\" source=\"5\" target=\"7\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;2&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;#00ff00&quot;,&quot;condition&quot;:&quot;${ listurl!=null &amp;&amp; listurl.size()&gt;0}&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"9\" value=\"url变量\" style=\"variable\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"690\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;url变量&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;ziloopVariableName&quot;:&quot;&quot;,&quot;variable-name&quot;:[&quot;infourl&quot;,&quot;infourl&quot;],&quot;variable-description&quot;:[&quot;&quot;,&quot;&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;ziloopCount&quot;:&quot;&quot;,&quot;variable-value&quot;:[&quot;${listurl[i]}&quot;,&quot;${urlUtils.getabsurl(infourl,weburl)}&quot;],&quot;shape&quot;:&quot;variable&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"10\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"7\" target=\"9\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"12\" value=\"详情html\" style=\"request\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"820\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;详情html&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;method&quot;:&quot;POST&quot;,&quot;sleep&quot;:&quot;100&quot;,&quot;timeout&quot;:&quot;30000&quot;,&quot;response-charset&quot;:&quot;&quot;,&quot;retryCount&quot;:&quot;&quot;,&quot;retryInterval&quot;:&quot;&quot;,&quot;body-type&quot;:&quot;raw&quot;,&quot;body-content-type&quot;:&quot;application/json&quot;,&quot;loopCount&quot;:&quot;&quot;,&quot;url&quot;:&quot;http://118.184.157.251:35256/pw/spider/getHtml&quot;,&quot;proxy&quot;:&quot;&quot;,&quot;request-body&quot;:&quot;{\\&quot;webUrl\\&quot;:\\&quot;${infourl}\\&quot;}&quot;,&quot;follow-redirect&quot;:&quot;1&quot;,&quot;tls-validate&quot;:&quot;0&quot;,&quot;cookie-auto-set&quot;:&quot;1&quot;,&quot;repeat-enable&quot;:&quot;0&quot;,&quot;shape&quot;:&quot;request&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"13\" value=\"\" style=\"strokeWidth=2;strokeColor=blue;sharp=1;\" parent=\"1\" source=\"9\" target=\"12\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;blue&quot;,&quot;condition&quot;:&quot;${infourl!=null &amp;&amp; infourl.indexOf(&#39;http&#39;)!=-1}&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"16\" value=\"结果发送\" style=\"redisSend\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"1160\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;结果发送&quot;,&quot;redis&quot;:&quot;article_public_id&quot;,&quot;redis-send&quot;:&quot;0&quot;,&quot;output-name&quot;:[&quot;title&quot;,&quot;publish_time&quot;,&quot;contenthtml&quot;,&quot;content&quot;,&quot;source_url&quot;,&quot;author&quot;,&quot;author_url&quot;,&quot;author_avatar&quot;,&quot;classify&quot;,&quot;similarvolume&quot;,&quot;heatvolume&quot;,&quot;spider_time&quot;,&quot;publish_date&quot;,&quot;publishdate&quot;,&quot;article_public_id&quot;,&quot;hbase_table&quot;,&quot;es_index&quot;,&quot;es_type&quot;,&quot;seed_id&quot;,&quot;otherseedid&quot;,&quot;website_id&quot;,&quot;otherwebsiteid&quot;,&quot;source_name&quot;,&quot;websitelogo&quot;,&quot;sourcewebsitename&quot;,&quot;extend_string_five&quot;,&quot;bloomName&quot;],&quot;output-value&quot;:[&quot;${title}&quot;,&quot;${publish_time == null ?dateUtils.getDate() :dateUtils.FormatDate(publish_time)}&quot;,&quot;${contenthtml}&quot;,&quot;${content}&quot;,&quot;${source_url}&quot;,&quot;${author}&quot;,&quot;${author_url}&quot;,&quot;${author_avatar}&quot;,&quot;${classify}&quot;,&quot;${similarvolume}&quot;,&quot;${heatvolume}&quot;,&quot;${dateUtils.getDate()}&quot;,&quot;${dateUtils.getDateday()}&quot;,&quot;${dateUtils.getDateday()}&quot;,&quot;${md5Utils.getMD5(source_url)}&quot;,&quot;${hbase_table}&quot;,&quot;${es_index}&quot;,&quot;${es_type}&quot;,&quot;${seed_id}&quot;,&quot;${otherseedid}&quot;,&quot;${website_id}&quot;,&quot;${otherwebsiteid}&quot;,&quot;${source_name}&quot;,&quot;${websitelogo}&quot;,&quot;${sourcewebsitename}&quot;,&quot;${extend_string_five}&quot;,&quot;${bloomName}&quot;],&quot;shape&quot;:&quot;redisSend&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"17\" value=\"\" style=\"strokeWidth=2;strokeColor=#00ff00;sharp=1;\" parent=\"1\" source=\"22\" target=\"16\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;2&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;#00ff00&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"18\" value=\"列表url变量\" style=\"variable\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"172\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;列表url变量&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;ziloopVariableName&quot;:&quot;&quot;,&quot;variable-name&quot;:[&quot;weburl&quot;],&quot;variable-description&quot;:[&quot;&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;ziloopCount&quot;:&quot;&quot;,&quot;variable-value&quot;:[&quot;${weburl}$&quot;],&quot;shape&quot;:&quot;variable&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"20\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"18\" target=\"3\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"21\" value=\"输出\" style=\"output\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"950\" y=\"188\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;输出&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;tableName&quot;:&quot;&quot;,&quot;csvName&quot;:&quot;&quot;,&quot;csvEncoding&quot;:&quot;GBK&quot;,&quot;output-name&quot;:[&quot;title&quot;,&quot;source_url&quot;,&quot;publish_time&quot;,&quot;content&quot;,&quot;contenthtml&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;output-value&quot;:[&quot;${title}&quot;,&quot;${source_url}&quot;,&quot;${publish_time}&quot;,&quot;${content}&quot;,&quot;${contenthtml}&quot;],&quot;output-all&quot;:&quot;0&quot;,&quot;output-database&quot;:&quot;0&quot;,&quot;output-csv&quot;:&quot;0&quot;,&quot;shape&quot;:&quot;output&quot;}\n" +
            "      </JsonProperty>";


    private String xml1 = "</mxCell>\n" +
            "    <mxCell id=\"22\" value=\"详情变量\" style=\"variable\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"950\" y=\"80\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;详情变量&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;ziloopVariableName&quot;:&quot;&quot;,&quot;variable-name&quot;:[&quot;infojson&quot;,&quot;infodata&quot;,&quot;infohtml&quot;,&quot;source_url&quot;],&quot;variable-description&quot;:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;ziloopCount&quot;:&quot;&quot;,&quot;variable-value&quot;:[&quot;${resp.json}&quot;,&quot;${infojson.data}&quot;,&quot;${GZIPUtils.uncompress(infodata)}&quot;,&quot;${infourl}&quot;],&quot;shape&quot;:&quot;variable&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"23\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"12\" target=\"22\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"24\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"22\" target=\"21\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"25\" value=\"url变量\" style=\"variable\" parent=\"1\" vertex=\"1\">\n" +
            "      <mxGeometry x=\"690\" y=\"150\" width=\"32\" height=\"32\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;url变量&quot;,&quot;loopVariableName&quot;:&quot;&quot;,&quot;ziloopVariableName&quot;:&quot;&quot;,&quot;variable-name&quot;:[&quot;infourl&quot;],&quot;variable-description&quot;:[&quot;&quot;],&quot;loopCount&quot;:&quot;&quot;,&quot;ziloopCount&quot;:&quot;&quot;,&quot;variable-value&quot;:[&quot;http://stdaily.com/index/kejixinwen/202404/520825e54d5e4cd8b04cc415e784cade.shtml&quot;],&quot;shape&quot;:&quot;variable&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "    <mxCell id=\"28\" value=\"\" style=\"strokeWidth=2;sharp=1;\" parent=\"1\" source=\"2\" target=\"18\" edge=\"1\">\n" +
            "      <mxGeometry relative=\"1\" as=\"geometry\"/>\n" +
            "      <JsonProperty as=\"data\">\n" +
            "        {&quot;value&quot;:&quot;&quot;,&quot;exception-flow&quot;:&quot;0&quot;,&quot;lineWidth&quot;:&quot;2&quot;,&quot;line-style&quot;:&quot;sharp&quot;,&quot;lineColor&quot;:&quot;black&quot;,&quot;condition&quot;:&quot;&quot;,&quot;transmit-variable&quot;:&quot;1&quot;}\n" +
            "      </JsonProperty>\n" +
            "    </mxCell>\n" +
            "  </root>\n" +
            "</mxGraphModel>";
}
